﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataModel
{
    public class WorkState
    {
        private short changeLayer;

        private short taskSignal;
        
        private short actualTota;

        private short autoTaksType = 0;
        /// <summary>
        /// 
        /// </summary>
        /// <param name="c">换层信号</param>
        /// <param name="t">工作信号</param>
        /// <param name="a">实际取料量</param>
        public WorkState(short c, short t, short a)
        {
            changeLayer = c;
            taskSignal = t;
            actualTota = a;
        }
        public WorkState()
        { }
        /// <summary>
        /// 分层取料换层信号 0无动作，1换层
        /// </summary>
        public virtual short ChangeLayer
        {
            get { return changeLayer; }
            set { changeLayer = value; }
        }
        /// <summary>
        /// 作业完成信号 0无任务，1执行中，2完成，4寻址中
        /// </summary>
        public virtual short TaskSignal
        {
            get { return taskSignal; }
            set { taskSignal = value; }
        }
        /// <summary>
        /// 实际取料量/堆料量
        /// </summary>
        public virtual short ActualTota
        {
            get { return actualTota; }
            set { actualTota = value; }
        }
        /// <summary>
        /// 任务类型，1堆2取
        /// </summary>
        public virtual short AutoTaksType
        {
            get { return autoTaksType; }
            set { autoTaksType = value; }
        }
    }
}
